<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js ie9"> <!--<![endif]-->
<head>
<title><?php echo $title; ?></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width">
<base href="<?php echo $base; ?>" />
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php } ?>
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<?php foreach ($styles as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>
<link rel="shortcut icon" type="image/x-icon" href="catalog/view/theme/default/favicon.ico" />
<link rel="stylesheet" href="catalog/view/theme/default/css/normalize.css">
<link rel="stylesheet" href="catalog/view/theme/default/css/main.css">
<link rel="stylesheet" href="catalog/view/theme/default/css/colorbox.css">
<link rel="stylesheet" href="catalog/view/theme/default/css/magiczoom.css">
<script src="catalog/view/theme/default/js/vendor/modernizr-2.6.1.min.js"></script>
<script src="catalog/view/theme/default/js/jquery-1.6.2.min.js"></script>
<script src="catalog/view/theme/default/js/jquery.validate.js"></script> 
<script src="catalog/view/theme/default/js/jquery.maskedinput-1.3.min.js"></script>
<script src="catalog/view/javascript/common.js"></script>  
</head>
    <body>
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p>
        <![endif]-->
     
 <header id="header">
	<h1 id="logo" class="fll mt15"><a href="index.php"><img src="catalog/view/theme/default/img/logo.png" alt="Elinea - Design for a life time" /></a></h1>
	<section class="header-r w450 flr mt15">
        <div id="langSelector" class="w50 flr">
         
        		<form action="<?php echo $action; ?>" method="post" id="frm_lang" enctype="multipart/form-data">    
                <!--<span class="selected-lang"><a style="cursor:pointer" onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $lang=='en' ? 'en' : 'fr'; ?>');$('#frm_lang').submit();"><img src="catalog/view/theme/default/img/<?php echo $lang=='en' ? 'ca-en.png' : 'quebec.png'; ?>"  /></a></span>-->
                <?php
               
                    	for($i=1;$i<=5;$i++) {
                        	if($i<=2) {
                       			$short_lang = "fr";
                            } else {
                        		$short_lang = "en";
                            }
                        	if($i==1) { $cur_code = 'CAD';$tt = 'Québec';}
                            if($i==2) { $cur_code = 'EUR';$tt = 'Canadien';}
                            if($i==3) { $cur_code = 'CAD';$tt = 'Français';}
                            if($i==4) { $cur_code = 'EUR';$tt = 'European';}
                            if($i==5) { $cur_code = 'USD';$tt = 'United States';}
                            if($cur_select_lang == $i) {
                        ?>
                        <span class="selected-lang"><a style="cursor:pointer" ><img src="catalog/view/theme/default/img/flag/<?php echo $i;?>.png" alt="<?php echo $tt;?>" title="<?php echo $tt;?>" /></a></span>
                        <?php
                        	}
                        } 
                    ?>
                <span class="arrow"></span>
                <ul class="lang-list" style="display: none">
                	<?php
                    	for($i=1;$i<=5;$i++) {
                        	if($i<=2) {
                       			$short_lang = "fr";
                            } else {
                        		$short_lang = "en";
                            }
                        	if($i==1) { $cur_code = 'CAD';$tt = 'Québec';}
                            if($i==2) { $cur_code = 'EUR';$tt = 'Canadien';}
                            if($i==3) { $cur_code = 'CAD';$tt = 'Français';}
                            if($i==4) { $cur_code = 'EUR';$tt = 'European';}
                            if($i==5) { $cur_code = 'USD';$tt = 'United States';}
                            if($cur_select_lang != $i) {
                        ?>
                        <li class="lang-item"><a style="cursor:pointer" onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $short_lang;?>');$('input[name=\'currency_code\']').attr('value', '<?php echo $cur_code;?>');$('input[name=\'flag_code\']').attr('value', '<?php echo $i;?>');$('#frm_lang').submit();"><img src="catalog/view/theme/default/img/flag/<?php echo $i;?>.png"  alt="<?php echo $tt;?>" title="<?php echo $tt;?>" /></a></li>
                        <?php
                        	}
                        } 
                    ?>
                    <!--<li class="lang-item"><a style="cursor:pointer" onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $lang=='fr' ? 'en' : 'fr'; ?>').submit();$('#frm_lang').submit();"><img src="catalog/view/theme/default/img/<?php echo $lang=='en' ? 'quebec.png' : 'ca-en.png'; ?>" /></a></li>-->
                </ul>
             <input type="hidden" name="flag_code" value="1" />
              <input type="hidden" name="currency_code" value="" />
              <input type="hidden" name="language_code" value="" />
              <input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />    
            </form>              
        
        
        
           
            
            
            
            
        </div>
        
        <div id="search" class="w250 flr">
            
                <fieldset>
                	<?php if ($filter_name) { ?>
                        <input type="text" name="filter_name"  class="search-input input-txt fll" autocomplete="off" title="Search"  value="<?php echo $filter_name; ?>" />
                        <?php } else { ?>
                        <input type="text" name="filter_name"  class="search-input input-txt fll" autocomplete="off" title="<?php echo $text_search;?>"   />
                        <?php } ?>
                        
                    <!--
                    <input type="text" name="search" class="search-input input-txt fll" autocomplete="off" title="Search" />
                    -->
                    <input class="search-submit fll button-search" style="cursor:pointer;"  value="Search" title="Search"/>
                </fieldset>
            
        </div>
        <a class="my-selection" href="<?php echo $this->url->link('checkout/cart');?>"><?php echo $text_my_selections;?></a>           
	</section>
    <?php echo $elinea_menu_category;?>
</header><!--header-->       